package com.yiyuan.app.entity.result;

import com.guaike.core.entity.annotation.DictConvert;
import com.guaike.core.entity.annotation.NumberAutoConvert;
import com.yiyuan.app.entity.constant.BusinessDictCodeConstant;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * @Author: zhangxilin
 * @Date: 2024/5/31
 */
@ApiModel("每日任务单条实体")
@Data
public class TaskDailyVO implements Serializable {

    @ApiModelProperty("id")
    private Long id;

    @ApiModelProperty("任务名称")
    private String taskName;

    @ApiModelProperty("任务方式(1:直接领取,2:今日首充,3:今日累计充值,4:今日消耗松果数,5:今日领取奖赏次数,6:今日首次发起挑战,7:完成所有每日任务)")
    @DictConvert(code = BusinessDictCodeConstant.TASK_DAILY_ACTION)
    private Integer action;

    @ApiModelProperty("奖励松果数")
    @NumberAutoConvert
    private Integer prize;

    @ApiModelProperty("达标条件")
    @NumberAutoConvert
    private Integer condition;

    @ApiModelProperty("当前进度")
    @NumberAutoConvert
    private Integer currentProgress;

    @ApiModelProperty("（0:去完成，1:待领取，2:已领取）")
    @DictConvert(code = BusinessDictCodeConstant.M_PRIZE_STATUS)
    private Integer status;

}
